home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Table / Sources / Part.r < prev    next >
Encoding:
Text File  |  1996-12-16  |  5.4 KB  |  266 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.r
  4. //    Release Version:    $ ODF 3 $ 
  5. //
  6. //    Contains:            cfrg and NMAP resources for ODFTable
  7. //    Written by:            
  8. //
  9. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #define SystemSevenOrBetter 1            // we want the extended types
  14. #define    SystemSevenOrLater    1            // Types.r uses this variable
  15.  
  16. #include "Types.r"
  17. #include "SysTypes.r"
  18. #include "CodeFragmentTypes.r"
  19.  
  20. #ifndef __ODTYPES_R__
  21. #include "ODTypes.r"
  22. #endif
  23.  
  24. #ifndef FWBLDDEF_H
  25. #include "FWBldDef.h"
  26. #endif
  27.  
  28. #ifndef DEFINES_K
  29. #include "Defines.k"
  30. #endif
  31.  
  32. #ifndef BINDING_K
  33. #include "Binding.k"
  34. #endif
  35.  
  36. //-------------------------------------------------------------------------------------
  37. // cfrg Resource
  38. //-------------------------------------------------------------------------------------
  39.  
  40. resource 'cfrg' (0) {
  41.     {    /* array memberArray: 2 elements */
  42.         /* [1] */
  43. #ifdef FW_BUILD_MAC68K
  44.         kMotorola,
  45. #else
  46.         kPowerPC,
  47. #endif
  48.         kFullLib,
  49.         kNoVersionNum,
  50.         kNoVersionNum,
  51.         kDefaultStackSize,
  52.         kNoAppSubFolder,
  53.         kIsLib,
  54.         kOnDiskFlat,
  55.         kZeroOffset,
  56.         kWholeFork,
  57.         kEditor,
  58.         /* [2] */
  59. #ifdef FW_BUILD_MAC68K
  60.         kMotorola,
  61. #else
  62.         kPowerPC,
  63. #endif
  64.         kFullLib,
  65.         kNoVersionNum,
  66.         kNoVersionNum,
  67.         kDefaultStackSize,
  68.         kNoAppSubFolder,
  69.         kIsLib,
  70.         kOnDiskFlat,
  71.         kZeroOffset,
  72.         kWholeFork,
  73.         "ODFTable"
  74.     }
  75. };
  76.  
  77. //-------------------------------------------------------------------------------------
  78. // NMAP Resources
  79. //-------------------------------------------------------------------------------------
  80.  
  81. resource kODNameMappings (kKindCategoryMapID) {
  82.     kODKind,
  83.     {    /* array Types: 1 elements */
  84.         /* [1] */
  85.         kKind,
  86.         kODIsAnISOStringList
  87.         {
  88.             {    /* array ClassIDs: 1 elements */
  89.                 /* [1] */
  90.                 kODCategoryTable
  91.             }
  92.         }
  93.     }
  94. };
  95.  
  96. resource kODNameMappings (kEditorKindMapID) {
  97.     kODEditorKinds,
  98.     {    /* array Types: 1 elements */
  99.         /* [1] */
  100.         kEditor,
  101.         kODIsAnISOStringList
  102.         {
  103.             {    /* array ClassIDs: 1 elements */
  104.                 /* [1] */
  105.                 kKind
  106.             }
  107.         }
  108.     }
  109. };
  110.  
  111. resource kODNameMappings (kEditorUserStringMapID) {
  112.     kODEditorUserString,
  113.     {    /* array Types: 1 elements */
  114.         /* [1] */
  115.         kEditor,
  116.         kODIsINTLText
  117.         {
  118.             smRoman,
  119.             langEnglish,
  120.             kODFTableEditorUserString
  121.         }
  122.     }
  123. };
  124.  
  125. resource kODNameMappings (kKindUserStringMapID) {
  126.     kODKindUserString,
  127.     {    /* array Types: 1 elements */
  128.         /* [1] */
  129.         kKind,
  130.         kODIsINTLText
  131.         {
  132.             smRoman,
  133.             langEnglish,
  134.             kKindUserString
  135.         }
  136.     }
  137. };
  138.  
  139. resource kODNameMappings (kOldMacOSTypeMapID) {
  140.     kODKindOldMacOSType,
  141.     {    /* array KeyList: 1 elements */
  142.         /* [1] */
  143.         kKind,
  144.         kODIsMacOSType {
  145.             kODFTableDocumentOSType
  146.         }
  147.     }
  148. };
  149.  
  150. //-------------------------------------------------------------------------------------
  151. // BNDL resources
  152. //-------------------------------------------------------------------------------------
  153.  
  154. resource 'FREF' (128) {
  155.     'shlb',
  156.     0,
  157.     ""
  158. };
  159.  
  160. resource 'FREF' (132) {
  161.     kODFTableDocumentOSType,
  162.     1,
  163.     ""
  164. };
  165.  
  166. resource 'FREF' (133) {
  167.     kODFTableStationeryOSType,
  168.     2,
  169.     ""
  170. };
  171.  
  172. resource 'BNDL' (128) {
  173.     kODFTablePartEditorOSType,
  174.     0,
  175.     {    /* array TypeArray: 2 elements */
  176.         /* [1] */
  177.         'FREF',
  178.         {    /* array IDArray: 1 elements */
  179.             /* [1] */
  180.             0, 128
  181.         },
  182.         /* [2] */
  183.         'ICN#',
  184.         {    /* array IDArray: 1 elements */
  185.             /* [1] */
  186.             0, 147
  187.         }
  188.     }
  189. };
  190.  
  191. resource 'BNDL' (129) {
  192.     kODShellSignature,
  193.     0,
  194.     {    /* array TypeArray: 2 elements */
  195.         /* [1] */
  196.         'FREF',
  197.         {    /* array IDArray: 2 elements */
  198.             /* [1] */
  199.             1, 132,
  200.             /* [2] */
  201.             2, 133
  202.         },
  203.         /* [2] */
  204.         'ICN#',
  205.         {    /* array IDArray: 2 elements */
  206.             /* [1] */
  207.             1, 145,
  208.             /* [2] */
  209.             2, 146
  210.         }
  211.     }
  212. };
  213.  
  214. data kODShellSignature (0, "Owner resource") {
  215.     $"00"                                                 /* . */
  216. };
  217.  
  218. data kODFTablePartEditorOSType (0, "Owner resource") {
  219.     $"00"                                                 /* . */
  220. };
  221.  
  222. //-------------------------------------------------------------------------------------
  223. // kind Resources
  224. //-------------------------------------------------------------------------------------
  225.  
  226. // Kind resources affect the text Finder displays in the
  227. // "kind" column and file info dialog. This feature was
  228. // introduced as part of Macintosh Easy Open.
  229. //
  230. resource 'kind' (1000) {
  231.     kODFTablePartEditorOSType,
  232.     0, /* region = USA */
  233.     {
  234.         'shlb', "OpenDoc™ editor"
  235.     }
  236. };
  237.         
  238. resource 'kind' (1001) {
  239.     kODShellSignature,
  240.     0, /* region = USA */
  241.     {
  242.         kODFTableDocumentOSType, kODFTableEditorUserString" document",
  243.         kODFTableStationeryOSType, kODFTableEditorUserString" stationery"
  244.     }
  245. };
  246.  
  247. //-------------------------------------------------------------------------------------
  248. // STR resources
  249. //-------------------------------------------------------------------------------------
  250. // The -16397 string will be displayed by Finder when a user
  251. // tries to open the editor shared library. The string should
  252. // give the user a little detail about the part's capabilities
  253. // and enough information to install the part in the correct location.
  254. //
  255. resource 'STR ' (-16397, purgeable) {
  256.     "OpenDoc™ editor\n\nTo work properly, the “ODFTable” shared library"
  257.     " should be placed in the Editors folder.  To create a new document, "
  258.     "open a stationery pad."
  259. };
  260.  
  261. //-------------------------------------------------------------------------------------
  262. // Other resources
  263. //-------------------------------------------------------------------------------------
  264.  
  265. include "MacIcons.rsrc" not 'ckid';
  266.